package blueBridgeCup;

import java.util.Scanner;

public class demo10 {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        String str= in.next();
        StringBuffer sb=new StringBuffer(str);

        System.out.println(str.equals(sb.reverse().toString())?'Y':'N');

    }
}
